package org.myspring.dis;

public class TextEditor5 {

	private SpellChecker spellChecker;
	private String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		System.out.println("inside setName:" + name);
		this.name = name;
	}

	public SpellChecker getSpellChecker() {
		return spellChecker;
	}

	public void setSpellChecker(SpellChecker spellChecker) {
		System.out.println("inside TextEditor5 setSpellChecker.");
		this.spellChecker = spellChecker;
	}

	public void spellCheck() {
		spellChecker.checkSpelling();
	}

	public TextEditor5(SpellChecker spellChecker, String name) {
		System.out.println("inside TextEditor5 consturctor.");
		this.spellChecker = spellChecker;
		this.name = name;
	}
	
	
}
